<?php
	if(is_array($_POST['contact_id'])) {
		$contact_id = $_POST['contact_id'];
		$sql = "UPDATE `tbl_contact` SET `status` = '2' WHERE `contact_id` IN (". implode (',',$contact_id) .")";
	} else { 
		$contact_id = $params[0]; 
		$sql = "UPDATE `tbl_contact` SET `status` = '2' WHERE `contact_id` = '$contact_id' LIMIT 1"; 
	}
	mysql_query($sql);
	exit;
?>